package com.ruoyi.finance.service.impl;

import com.ruoyi.finance.domain.ChargeRecord;
import com.ruoyi.finance.mapper.ChargeRecordMapper;
import com.ruoyi.finance.service.IChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 查询收费Service业务层处理
 *
 * @author zt
 * @date 2023-11-15
 */
@Service
public class ChargeRecordServiceImpl implements IChargeRecordService
{
    @Autowired
    private ChargeRecordMapper chargeRecordMapper;

    /**
     * 查询查询收费
     *
     * @param id 查询收费主键
     * @return 查询收费
     */
    @Override
    public ChargeRecord selectChargeRecordById(Integer id)
    {
        return chargeRecordMapper.selectChargeRecordById(id);
    }

    /**
     * 查询查询收费列表
     *
     * @param chargeRecord 查询收费
     * @return 查询收费
     */
    @Override
    public List<ChargeRecord> selectChargeRecordList(ChargeRecord chargeRecord)
    {
        return chargeRecordMapper.selectChargeRecordList(chargeRecord);
    }

    /**
     * 新增查询收费
     *
     * @param chargeRecord 查询收费
     * @return 结果
     */
    @Override
    public int insertChargeRecord(ChargeRecord chargeRecord)
    {

        return chargeRecordMapper.insertChargeRecord(chargeRecord);
    }

    /**
     * 修改查询收费
     *
     * @param chargeRecord 查询收费
     * @return 结果
     */
    @Override
    public int updateChargeRecord(ChargeRecord chargeRecord)
    {
        return chargeRecordMapper.updateChargeRecord(chargeRecord);
    }

}
